/** @format */

@import "utils";

.home {
  height: 100%;
  overflow: hidden;

  main {
    display: flex;
    width: 100%;
    position: relative;

    aside {
      height: calc(100vh - 75px);
      background: var(--menu-bgcolor);
      position: relative;
      width: 300px;

      .menu {
        padding-bottom: 90px;
        width: 100%;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        color: var(--font-color);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        overflow-y: auto;
        .iconAdd {
          margin: 0;
          margin-left: 100px;
          color: #c4c4c5;
          font-size: 14px;
          &:hover {
            color: #939394;
            font-weight: 800;
          }
        }
      }
    }

    article {
      flex: 1;
      background: var(--body-bgcolor);
      color: var(--font-color);
      position: relative;

      .containerWrapper {
        min-height: 500px;
        width: 100%;
        height: 100%;
        overflow: auto;
        position: absolute;
        left: 0;
        top: 0;
        padding: 0 108px 90px 108px;
      }
    }

    .drawer {
      z-index: 1001;
    }
  }

  ._footer {
    @include fix-footer(75px);
    display: flex;
    padding: 8px 12px;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--body-bgcolor);

    .footerContainer {
      display: flex;
      flex-direction: column;

      .footer {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .info {
          display: flex;
          align-items: center;
          width: 300px;

          .img {
            position: relative;
            width: 50px;
            height: 50px;
            margin-left: 25px;
            cursor: pointer;
            background: #333333;
            //margin: 0 auto;
            //position: relative;
            overflow: hidden;

            &::after {
              content: "";
              height: 150%;
              width: 25px;
              background: #fff;
              position: absolute;
              left: 0;
              right: 0;
              top: 0;
              bottom: 0;
              margin: auto;
              opacity: 0.6;
              filter: blur(6px);
              animation: move 1s infinite ease-out;
            }

            &:hover {
              .full {
                opacity: 0.5;
              }
            }

            .mask {
              position: absolute;
              left: 0;
              bottom: 0;
              top: 0;
              right: 0;
              background: rgba(0, 0, 0, 0.2);
              z-index: 2;
              border-radius: 20%;
            }

            .full {
              @include center();
              font-size: 50px;
              color: #ffffff;
              opacity: 0;
            }

            img {
              width: 100%;
              border-radius: 20%;
            }
          }

          .content {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-left: 15px;

            .top {
              margin-bottom: 10px;

              .songName {
                color: var(--font-color-white);
                @include ellipsis();
              }

              .split {
                font-size: 12px;
                padding: 5px;
              }

              .name {
                font-size: 12px;
                @include ellipsis();
              }
            }

            .bottom {
              font-size: 12px;
              width: 100%;

              .split {
                padding: 0 5px;
              }
            }
          }
        }

        .playBtnGroup {
          display: flex;
          width: 200px;
          justify-content: space-between;
          align-items: center;
          color: $fontColor;

          .common {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: #00A799;
            color: #ffffff;
            display: flex;
            justify-content: center;
            align-items: center;

            &:hover {
              background-color: #00A799;
            }

            &.now {
              width: 50px;
              height: 50px;
              font-size: 30px;

              .caret {
                margin-left: 5px;
                margin-top: 4px;
              }
              .pause {
                margin-top: 4px;
              }
            }
          }

          .last {
          }
        }

        .playRate {
          display: flex;
          justify-content: center;
          align-items: center;

          .tip {
            margin: 0;
            font-size: 14px;
          }
        }

        .operating {
          display: flex;
          width: 360px;
          font-size: 25px;
          justify-content: space-between;
          align-items: center;
          cursor: pointer;
          margin-right: 20px;

          .progress {
            display: flex;
            width: 200px;
            justify-content: space-between;
            align-items: center;

            .slider {
              flex: 1;
            }

            .voice {
              padding-bottom: 5px;
            }
          }
        }
      }
    }
  }

  @keyframes move {
    0% {
      transform: translate(-200px, -200px) rotate(45deg);
    }
    100% {
      transform: translate(200px, 200px) rotate(45deg);
    }
  }
}

:global {
  //进场前的瞬间
  ._song_list_an-enter,
  ._song_list_an-appear {
    opacity: 0;
  }

  //进场过程中
  ._song_list_an-enter-active,
  ._song_list_an-appear-active {
    opacity: 1;
    transition: opacity 2000ms;
  }

  //进场之后
  ._song_list_an-enter-done {
    opacity: 1;
  }

  //离开前的瞬间
  ._song_list_an-exit {
    opacity: 1;
  }

  //离开过程中
  ._song_list_an-exit-active {
    opacity: 0;
    transition: opacity 2000ms;
  }

  //离开后
  ._song_list_an-exit-done {
    opacity: 0;
  }

  //进场前的瞬间
  ._favorite_list_an-enter,
  ._favorite_list_an-appear {
    opacity: 0;
  }

  //进场过程中
  ._favorite_list_an-enter-active,
  ._favorite_list_an-appear-active {
    opacity: 1;
    transition: opacity 2000ms;
  }

  //进场之后
  ._favorite_list_an-enter-done {
    opacity: 1;
  }

  //离开前的瞬间
  ._favorite_list_an-exit {
    opacity: 1;
  }

  //离开过程中
  ._favorite_list_an-exit-active {
    opacity: 0;
    transition: opacity 2000ms;
  }

  //离开后
  ._favorite_list_an-exit-done {
    opacity: 0;
  }
}
